package com.jf3q.iot;

import com.jf3q.iot.netty.NettyServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

/**
 * @author:xiaojie
 * @create: 2023-06-01 08:21
 * @Description:
 */
@SpringBootApplication
@MapperScan("com.jf3q.iot.mapper")
public class StartApp implements CommandLineRunner {

    @Resource
    NettyServer nettyServer;
    public static void main(String[] args) {
        SpringApplication.run(StartApp.class,args);
    }

    @Override
    public void run(String... args) throws Exception {
        nettyServer.start();
    }
}
